// 封装本地存储的方式
// localStorage sessionStorage cookie

// localStorage
export const setStorage = (key, value) => {
  localStorage.setItem(key, value)
}

export const getStorage = (key) => {
  return localStorage.getItem(key)
}

export const removeStorage = (key) => {
  localStorage.removeItem(key)
}

// sessionStorage
/* export const setStorage = (key, value) => {
  sessionStorage.setItem(key, value)
}

export const getStorage = (key) => {
  return sessionStorage.getItem(key)
}

export const removeStorage = (key) => {
  sessionStorage.removeItem(key)
} */

// cookie
/* export const setStorage = (key, value) => {
  cookie.setItem(key, value)
}

export const getStorage = (key) => {
  return cookie.getItem(key)
}

export const removeStorage = (key) => {
  cookie.removeItem(key)
} */
